fix build script, remove unused build tool defines