corrected compile flags and object directory