Fixed building of the test and profiling applications under fftw-less and monarch-less builds.