restructured makefile; fixed cross-building issue; tests build only when -test is given; bumped version to 0.3