patch from Jakub Wilk adding noopt and nostrip build option support