Fixed shared/static and debug/release when using makefiles