hook to add custom linker flags, realloc bugfix