fix build script and add pragma