Fix linking on OSX

This defers compilation of angelscript until the build flags are set. Otherwise you'd get an error message if it compiled for x64 and it's needed for x68.