Added ifdef to posix_time. Fixed super crazy bug (thanks graywolfe).