corrected minor issues with compilation on mac os x