Fix errors on OSX

Premake still add -Wl,-x in LDFLAGS causing internal error. This flag
needed to be manually removed currently.