corrected some cmake issues that was preveniting build on fedora
cleaned up compiler warnings