Fix linking on OSX

This defers compilation of angelscript until the build flags are set. Otherwise you'd get an error message if the compiler target settings don't match (x68 vs x64).