Fix compiling static code with NEON
Add simple logging and test whether N is a power to 2