Fixed GPIO test and main makefile (needed to link against librt)