Adjusted compiler and linker settings to match more closely.