compiles without warnings
added flags for object files