Remove debug flags for release
Replace unsigned long's with uint32_t to fix bugs in lipo