Update build configuration and make sure it works on all platforms