fixed warnings for un-handled return-values when building release
fix for multiple flags defined when building MSVC