Remove unnecessary linker flags, remove unused macros