Fix cross-compilation and speed-up roundToPowOf2

The -march=native can override build system cflags, breaking the program on the target device.

roundtoPowOf2 can be implemented withouh doubles, an implementation with binary logic and another with gcc intrinsics is attached :)